{load header}

<!--/H-->
    <!-- 内容区 -->
    <div id="main-content">
        <div id="top-alert" class="fixed alert alert-error" style="display: none;">
            <button class="close fixed" style="margin-top: 4px;">&times;</button>
            <div class="alert-content">这是内容</div>
        </div>
        <div id="main" class="main">
            
            <!-- nav --><!-- nav -->
            
	<div class="main-title">
        <h2>贷款【{$item['title']}】子分类列表</h2>
    </div>
		<div class="cf">
		<a class="btn" href="{eval echo site_url('lendplats/category_son_add')}?pid={$item['id']}">添加【{$item['title']}】子分类</a>
	    </div>
	<div class="data-table table-striped">
		<table>
			<thead>
				<tr>
                                        <th>排序</th>
					<th>类别名称</th>
					<th>所属组</th>
                                        <th>是否隐藏</th>
					<th>操作</th>
				</tr>
			</thead>
			<tbody>
				<!--{loop $list $val}-->
				<tr>    
                                        <td><input type="text" name="sort" class="text input-mini" value="{$val['sort']}" style="text-align: center;width: 30px;"></td>
					<td>{$val['title']}</td>
					<td>{$val['groups']}</td>
					<td>{if $val['is_hide']}
                                            <a href="{eval echo site_url('lendplats/setcategory_hide')}?id={$val['id']}&is_hide=0"  title='设置隐藏' class="ajax-get">显示</a>
                                            {else}
                                            <a href="{eval echo site_url('lendplats/setcategory_hide')}?id={$val['id']}&is_hide=1" style="color:red;" title='设置显示' class="ajax-get">隐藏</a>
                                            {/if}</td>
                                        <td>
                                            <a href="{eval echo site_url('lendplats/category_son_edit')}?id={$val['id']}&pid={$val['pid']}">修改</a>&nbsp;&nbsp;|&nbsp;&nbsp;
                                            <a href="{eval echo site_url('lendplats/category_son_del')}?id={$val['id']}" class="ajax-get">删除</a>
                                        </td>
                                        
				</tr>
				<!--{/loop}-->
			</tbody>
		</table>
		<!-- 分页 -->
                 <div class="page">
	        <div>
			{$showpage}
			<span class="rows">共 {$Total} 条记录</span>
            </div>
		</div>
	</div>
	
			</div>
	</div>
<!--F-->{load footer}